import wepy from './wx'
export default {
  getWindowWidth() {
    return wepy.getSystemInfoSync().windowWidth
  },
  getWindowHeight() {
    return wepy.getSystemInfoSync().windowHeight
  },
  parseColor(str) {
    if (!this.isEmpty(str)) {
      return '#' + str.replace('#', '')
    }
    return ''
  }
}
